#!/usr/bin/env python3 
# -*- coding: UTF-8 -*-

'''
百度中的操作
by lina
'''
from src.gui.action import base_action
from src.gui.page import baidu_index
from src.gui.page import baidu_content

class Baidu(base_action.BaseAction):

	def __init__(self):
		super().__init__()
		self.baidu_index_pg = baidu_index.BaiduIndex()
		self.baidu_content_pg = baidu_content.BaiduContent()

	'''
	通过百度进入csdn
	by lina
	'''
	def into_csdn_by_baidu(self):
		self.baidu_index_pg.in_this_page()
		self.baidu_index_pg.search_content('csdn')
		self.baidu_content_pg.into_search_result(1,1)





